package com.dgshanger.sanhxiaofeisc.mvp.model;

import com.dgshanger.sanhxiaofeisc.common.AppApi;
import com.dgshanger.sanhxiaofeisc.entity.ShareEntity;
import com.dgshanger.sanhxiaofeisc.mvp.contract.SharedContract;
import com.xx.baseutilslibrary.network.rx.RxHelper;
import com.xx.baseutilslibrary.network.rx.RxHttpObserver;

/**
 * SharedModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/5/3 17:36.
 */

public class SharedModel implements SharedContract.Model {
    @Override
    public void loadData(RxHttpObserver<ShareEntity> httpObserver) {
        AppApi.Api()
                .my_share()
                .compose(RxHelper.io_main())
                .subscribe(httpObserver);
    }
}
